home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / CD-ROM Tools / CDRPlay / Include / iconbutton.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  895 b   |  34 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // iconbutton.hpp
  3. //
  4. // Jeffry A Worth
  5. // January 6, 1996
  6. //////////////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef __ICONBUTTON_HPP__
  9. #define __ICONBUTTON_HPP__
  10.  
  11. //////////////////////////////////////////////////////////////////////////////
  12. // INCLUDES
  13.  
  14. #include "aframe:include/window.hpp"
  15. #include "aframe:include/button.hpp"
  16. #include "aframe:include/rect.hpp"
  17.  
  18. class AFIconButton : public AFButton
  19. {
  20.   public:
  21.     AFIconButton();
  22.  
  23.     virtual char *ObjectType() { return "IconButton"; };
  24.  
  25.     virtual void Create(char *text, AFWindow* pwindow, AFRect *rect, ULONG id, LPImage pimage);
  26.     virtual void OnGadgetDown(LPIntuiMessage imess) { OnPaint(); };
  27.     virtual void OnGadgetUp(LPIntuiMessage imess) { OnPaint(); };
  28.     virtual void OnPaint(); 
  29.  
  30.     LPImage m_image;
  31. };
  32.  
  33. #endif // __ICONBUTTON_HPP__
  34.